//
//  YLJCountDownButton.h
//  ACE
//
//  Created by Mickey Yin on 2021/12/6.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class YLJCountDownButton;
typedef void(^Completion)(YLJCountDownButton *countDownButton);

@interface YLJCountDownButton : UIButton


/**
 *  开始倒计时
 *
 *  @param startTime  倒计时时间
 *  @param unitTitle  倒计时时间单位（如：s）
 *  @param completion 倒计时结束执行的Block
 */
- (void)xcountDownFromTime:(NSInteger)startTime unitTitle:(NSString *)unitTitle completion:(Completion)completion;

@end

NS_ASSUME_NONNULL_END
